package com.evil.application.pojo.dto.order;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.util.ArrayList;
import java.util.List;

/**
 * 删除订单请求实体
 *
 * @author liyang
 * @date 2022-08-08 00:00
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class DeleteOrderReqDTO extends OrderPageReqDTO {

    /**
     * 删除全部
     */
    @NotNull(message = "参数不能为空")
    private Boolean deletedAll;

    /**
     * 订单id列表
     */
    private List<Long> orderIds;

    public DeleteOrderReqDTO() {
        this.deletedAll = false;
        this.orderIds = new ArrayList<>();
    }
}
